package com.yuelife.service.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/****
 * @Author:admin
 * @Description:SSeckill构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel(description = "SSeckill",value = "SSeckill")
@Table(name="s_seckill")
public class SSeckill implements Serializable{

	@ApiModelProperty(value = "秒杀活动id",required = false)
	@Id
    @Column(name = "ss_id")
	private Integer ssId;//秒杀活动id

	@ApiModelProperty(value = "商品id",required = false)
    @Column(name = "serviceId")
	private Integer serviceId;//商品id

	@ApiModelProperty(value = "秒杀数量",required = false)
    @Column(name = "ps_count")
	private String psCount;//秒杀数量

	@ApiModelProperty(value = "秒杀开始时间",required = false)
    @Column(name = "start_time")
	private Date startTime;//秒杀开始时间

	@ApiModelProperty(value = "秒杀结束时间",required = false)
    @Column(name = "end_time")
	private Date endTime;//秒杀结束时间

	@ApiModelProperty(value = "0-未开始 1-进行中  2-已结束",required = false)
    @Column(name = "status")
	private String status;//0-未开始 1-进行中  2-已结束

	@ApiModelProperty(value = "当前价格",required = false)
    @Column(name = "current_price")
	private String currentPrice;//当前价格

	private SProduct sProduct;//秒杀商品对应一个商品

	public SProduct getsProduct() {
		return sProduct;
	}

	public void setsProduct(SProduct sProduct) {
		this.sProduct = sProduct;
	}

	//get方法
	public Integer getSsId() {
		return ssId;
	}

	//set方法
	public void setSsId(Integer ssId) {
		this.ssId = ssId;
	}
	//get方法
	public Integer getServiceId() {
		return serviceId;
	}

	//set方法
	public void setServiceId(Integer serviceId) {
		this.serviceId = serviceId;
	}
	//get方法
	public String getPsCount() {
		return psCount;
	}

	//set方法
	public void setPsCount(String psCount) {
		this.psCount = psCount;
	}
	//get方法
	public Date getStartTime() {
		return startTime;
	}

	//set方法
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	//get方法
	public Date getEndTime() {
		return endTime;
	}

	//set方法
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	//get方法
	public String getStatus() {
		return status;
	}

	//set方法
	public void setStatus(String status) {
		this.status = status;
	}
	//get方法
	public String getCurrentPrice() {
		return currentPrice;
	}

	//set方法
	public void setCurrentPrice(String currentPrice) {
		this.currentPrice = currentPrice;
	}


}
